package com.edu.solr_news.util;

import com.edu.solr_news.bean.News;

import java.util.List;

public class Pageutil {
    private String keyword;
    private long count;
    private int page;
    private int limit;
    private List<News> news;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }


    public List<News> getNews() {
        return news;
    }

    public void setNews(List<News> news) {
        this.news = news;
    }

    @Override
    public String toString() {
        return "Pageutil{" +
                "keyword='" + keyword + '\'' +
                ", count=" + count +
                ", page='" + page + '\'' +
                ", limit='" + limit + '\'' +
                ", news=" + news +
                '}';
    }
}
